package truef.customer.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "T_COUPON")
@Entity
public class Coupon extends BaseEntity {
	
	private static final long serialVersionUID = -3023615974655448845L;
	//商品名
	@Column(name = "NAME")
	String name;
	
	@Column(name = "PhoneNumber")
	//价格
	int Price;
	
	@ManyToOne
	@JoinColumn(name = "CUSTOMER_ID")
	Customer customer;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPrice() {
		return Price;
	}

	public void setPrice(int price) {
		Price = price;
	}


}
